package com.inkegz.message.entity

import io.objectbox.annotation.BaseEntity
import io.objectbox.annotation.Id

@BaseEntity
abstract class BaseEntity {

    @Id
    var id = 0L

    override fun equals(other: Any?): Boolean {
        if (other !is com.inkegz.message.entity.BaseEntity) return false
        return other.id == id
    }

    override fun hashCode() = id.hashCode()
}